home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Telnet / NCSA / tn3270 2.3d26 source / tn3270 / makefile < prev    next >
Makefile  |  1991-06-18  |  10KB  |  292 lines

  1. #
  2. #  tn3270 for the Macintosh Source Code
  3. #  Brown University Computing and Information Services
  4. #  Version 2.3d21, January 17, 1991
  5. #  Copyright (c) 1988, 1989, 1990, 1991 by Brown University and by
  6. #  Peter John DiCamillo.
  7. #
  8. #  Permission is granted to any individual or institution to use, copy,
  9. #  or redistribute the binary version of this software and its
  10. #  documentation provided this notice and the copyright notices are
  11. #  retained.  Permission is granted to any individual or non-profit
  12. #  institution to use, copy, modify, or redistribute the source files
  13. #  of this software provided this notice and the copyright notices are
  14. #  retained.  This software may not be distributed for profit, either
  15. #  in original form or in derivative works, nor can the source be
  16. #  distributed to other than an individual or a non-profit institution.
  17. #  Any  individual or group interested in seeing and/or using these
  18. #  source files but who are prevented from doing so by the above
  19. #  constraints should contact Don Wolfe, Assistant Vice-President for
  20. #  Computer Systems at Brown University, (401) 863-7250, for possible
  21. #  software licensing of the source developed at Brown.
  22. #
  23. #  Brown University and Peter John DiCamillo make no representations
  24. #  about the suitability of this software for any purpose.
  25. #
  26. #  BROWN UNIVERSITY AND PETER JOHN DICAMILLO GIVE NO WARRANTY, EITHER
  27. #  EXPRESS OR IMPLIED, FOR THE PROGRAM AND/OR DOCUMENTATION PROVIDED,
  28. #  INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY AND
  29. #  WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.
  30. #
  31.  
  32. # control variables
  33.  
  34. ObjDir    = ":obj:"
  35. HdrDir    = "{MPW}CIncludes:"
  36. TCPHdrDir = "{MPW}Mac Telnet:tcpip:"
  37. TCPLibDir = "{MPW}Mac Telnet:tcpip:"
  38. COpts    = -g
  39. AsmOpts    = 
  40. AllDepend =
  41. # AllDepend = makefile
  42. GlobalDepend = termdef.h globals.h
  43.  
  44. # file list variables
  45.  
  46. CommonObj = {ObjDir}grafterm.c.o ∂
  47.             {ObjDir}api.c.o ∂
  48.             {ObjDir}apistg.c.o ∂
  49.             {ObjDir}attnmenu.c.o ∂
  50.             {ObjDir}bgproc.a.o ∂
  51.             {ObjDir}cdialog.c.o ∂
  52.             {ObjDir}crcf.c.o ∂
  53.             {ObjDir}dialogs.c.o ∂
  54.             {ObjDir}hndkbd.c.o ∂
  55.             {ObjDir}kbtab.c.o ∂
  56.             {ObjDir}menu.c.o ∂
  57.             {ObjDir}prt.c.o ∂
  58.             {ObjDir}scrap.c.o ∂
  59.             {ObjDir}settings.c.o ∂
  60.             {ObjDir}sppc.c.o ∂
  61.             {ObjDir}switcher.c.o ∂
  62.             {ObjDir}util.c.o ∂
  63.             {ObjDir}vmxfer.c.o ∂
  64.             {ObjDir}writescr.c.o ∂
  65.             {ObjDir}writesf.c.o ∂
  66.             {ObjDir}writetm.c.o
  67.  
  68. # rules for creating object code files
  69.  
  70. {ObjDir}addshr.c.o ƒ {AllDepend} maclib.h addshr.c 
  71.     C {COpts} addshr.c -o {ObjDir}addshr.c.o
  72.     
  73. {ObjDir}addswt.c.o ƒ {AllDepend} maclib.h addswt.c 
  74.     C {COpts} addswt.c -o {ObjDir}addswt.c.o
  75.     
  76. {ObjDir}api.c.o ƒ {AllDepend} {GlobalDepend} maclib.h sppc.h api.c
  77.     C {COpts} api.c -o {ObjDir}api.c.o    
  78.  
  79. {ObjDir}apistg.c.o ƒ {AllDepend} {GlobalDepend} maclib.h apistg.c
  80.     C {COpts} apistg.c -o {ObjDir}apistg.c.o    
  81.  
  82. {ObjDir}attnmenu.c.o ƒ {AllDepend} {GlobalDepend} maclib.h attnmenu.c 
  83.     C {COpts} attnmenu.c -o {ObjDir}attnmenu.c.o    
  84.     
  85. {ObjDir}bgproc.a.o ƒ {AllDepend} bgproc.a 
  86.     Asm {AsmOpts} bgproc.a -o {ObjDir}bgproc.a.o
  87.     
  88. {ObjDir}cdialog.c.o ƒ {AllDepend} {GlobalDepend} maclib.h cdialog.c 
  89.     C {COpts} cdialog.c -o {ObjDir}cdialog.c.o
  90.     
  91. {ObjDir}crcf.c.o ƒ {AllDepend} crcf.c 
  92.     C {COpts} crcf.c -o {ObjDir}crcf.c.o
  93.  
  94. {ObjDir}dialogs.c.o ƒ {AllDepend} {GlobalDepend} maclib.h dialogs.c 
  95.     C {COpts} dialogs.c -o {ObjDir}dialogs.c.o
  96.  
  97. {ObjDir}glbtcp.c.o ƒ {AllDepend} {GlobalDepend} maclib.h globals.c 
  98.     C {COpts} -d TCP globals.c -o {ObjDir}glbtcp.c.o
  99.     
  100. {ObjDir}grafterm.c.o ƒ {AllDepend} {GlobalDepend} maclib.h telnet.h grafterm.c 
  101.     C {COpts} grafterm.c -o {ObjDir}grafterm.c.o
  102.     
  103. {ObjDir}hndkbd.c.o ƒ {AllDepend} {GlobalDepend} maclib.h hndkbd.c 
  104.     C {COpts} hndkbd.c -o {ObjDir}hndkbd.c.o
  105.     
  106. {ObjDir}kbtab.c.o ƒ {AllDepend} kbtab.c 
  107.     C {COpts} kbtab.c -o {ObjDir}kbtab.c.o
  108.     
  109. {ObjDir}menu.c.o ƒ {AllDepend} {GlobalDepend} maclib.h menu.c 
  110.     C {COpts} menu.c -o {ObjDir}menu.c.o
  111.     
  112. {ObjDir}netstub.c.o ƒ {AllDepend} {GlobalDepend} maclib.h netstub.c 
  113.     C {COpts} netstub.c -o {ObjDir}netstub.c.o
  114.  
  115. {ObjDir}prt.c.o ƒ {AllDepend} {GlobalDepend} maclib.h prt.c
  116.     C {COpts} prt.c -o {ObjDir}prt.c.o
  117.     
  118. {ObjDir}scrap.c.o ƒ {AllDepend} {GlobalDepend} maclib.h scrap.c
  119.     C {COpts} scrap.c -o {ObjDir}scrap.c.o
  120.     
  121. {ObjDir}serscrn.c.o ƒ {AllDepend} {GlobalDepend} maclib.h serscrn.c 
  122.     C {COpts} serscrn.c -o {ObjDir}serscrn.c.o
  123.     
  124. {ObjDir}sertstub.c.o ƒ {AllDepend} {GlobalDepend} maclib.h sertstub.c 
  125.     C {COpts} sertstub.c -o {ObjDir}sertstub.c.o
  126.  
  127. {ObjDir}settings.c.o ƒ {AllDepend} {GlobalDepend} maclib.h settings.c 
  128.     C {COpts} settings.c -o {ObjDir}settings.c.o
  129.     
  130. {ObjDir}sppc.c.o ƒ {AllDepend} sppcinterface.h sppc.c
  131.     C {COpts} sppc.c -o {ObjDir}sppc.c.o
  132.  
  133. {ObjDir}switcher.c.o ƒ {AllDepend} {GlobalDepend} maclib.h switcher.c 
  134.     C {COpts} switcher.c -o {ObjDir}switcher.c.o
  135.     
  136. {ObjDir}tcpevent.c.o ƒ {AllDepend} {GlobalDepend} maclib.h tcpevent.c ∂
  137.                             {TCPHdrDir}netevent.h ∂
  138.                             {TCPHdrDir}hostform.h                         
  139.     C {COpts} -i {TCPHdrDir} tcpevent.c -o {ObjDir}tcpevent.c.o
  140.     
  141. {ObjDir}tcpio.c.o ƒ {AllDepend} {GlobalDepend} maclib.h tcpio.c ∂
  142.                             {HdrDir}AppleTalk.h ∂
  143.                             {TCPHdrDir}netevent.h ∂
  144.                             {TCPHdrDir}kip.h ∂
  145.                             {TCPHdrDir}hostform.h
  146.     C {COpts} -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpio.c.o
  147.  
  148. {ObjDir}tcpiodrv.c.o ƒ {AllDepend} {GlobalDepend} maclib.h tcpio.c ∂
  149.                             {HdrDir}AppleTalk.h ∂
  150.                             {TCPHdrDir}netevent.h ∂
  151.                             {TCPHdrDir}kip.h ∂
  152.                             {TCPHdrDir}hostform.h
  153.     C {COpts} -d TCPDRV -i {TCPHdrDir} tcpio.c -o {ObjDir}tcpiodrv.c.o
  154.     
  155. {ObjDir}telnet.c.o ƒ {AllDepend} {GlobalDepend} maclib.h telnet.h telnet.c 
  156.     C {COpts} telnet.c -o {ObjDir}telnet.c.o
  157.     
  158. {ObjDir}util.c.o ƒ {AllDepend} maclib.h util.c 
  159.     C {COpts} util.c -o {ObjDir}util.c.o
  160.     
  161. {ObjDir}vmxfer.c.o ƒ {AllDepend} {GlobalDepend} maclib.h vmxfer.c 
  162.     C {COpts} vmxfer.c -o {ObjDir}vmxfer.c.o
  163.     
  164. {ObjDir}writescr.c.o ƒ {AllDepend} {GlobalDepend} maclib.h writescr.c 
  165.     C {COpts} writescr.c -o {ObjDir}writescr.c.o
  166.     
  167. {ObjDir}writesf.c.o ƒ {AllDepend} {GlobalDepend} maclib.h writesf.c 
  168.     C {COpts} writesf.c -o {ObjDir}writesf.c.o
  169.     
  170. {ObjDir}writetm.c.o ƒ {AllDepend} {GlobalDepend} maclib.h writetm.c 
  171.     C {COpts} writetm.c -o {ObjDir}writetm.c.o
  172.  
  173. # resource files common to all versions:
  174.  
  175. CommonRsc = general attnmap fonts icons version.r 
  176.  
  177. # rules for creating resource files
  178.  
  179. general ƒ {AllDepend} general.r
  180.     Rez general.r -o general
  181.     
  182. attnmap ƒ {AllDepend} attnmap.r
  183.     Rez attnmap.r -o attnmap
  184.  
  185. fonts ƒ {AllDepend} fonts.r
  186.     Rez fonts.r -o fonts
  187.         
  188. icons ƒ {AllDepend} icons.r
  189.     Rez icons.r -o icons
  190.         
  191. # rules for creating tool program 
  192.  
  193. addshr ƒƒ {AllDepend} {ObjDir}addshr.c.o
  194.     Delete -i addshr
  195.     Link -w -t MPST -c 'MPS ' ∂
  196.         {ObjDir}addshr.c.o ∂
  197.         "{Libraries}"Interface.o ∂
  198.         "{CLibraries}"CRuntime.o ∂
  199.         "{CLibraries}"StdCLib.o ∂
  200.         "{CLibraries}"CSANELib.o ∂
  201.         "{CLibraries}"Math.o ∂
  202.         "{CLibraries}"CInterface.o ∂
  203.         "{Libraries}"ToolLibs.o ∂
  204.         -o addshr
  205.  
  206. addswt ƒƒ {AllDepend} {ObjDir}addswt.c.o
  207.     Delete -i addswt
  208.     Link -w -t MPST -c 'MPS ' ∂
  209.         {ObjDir}addswt.c.o ∂
  210.         "{Libraries}"Interface.o ∂
  211.         "{CLibraries}"CRuntime.o ∂
  212.         "{CLibraries}"StdCLib.o ∂
  213.         "{CLibraries}"CSANELib.o ∂
  214.         "{CLibraries}"Math.o ∂
  215.         "{CLibraries}"CInterface.o ∂
  216.         "{Libraries}"ToolLibs.o ∂
  217.         -o addswt
  218.  
  219. # rules for creating tn3270 versions
  220.  
  221. # standard tn3270 (TCP/IP only)
  222. tn3270 ƒƒ {AllDepend} {CommonObj} {ObjDir}glbtcp.c.o ∂
  223.              {ObjDir}netstub.c.o ∂
  224.              {ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
  225.              {ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
  226.              {CommonRsc} tcpversion.r addshr addswt
  227.     Delete -i tn3270
  228.     Link -b -w -t APPL -c 'GFTM' {CommonObj} {ObjDir}glbtcp.c.o ∂
  229.         {ObjDir}netstub.c.o ∂
  230.         {ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
  231.         {ObjDir}tcpevent.c.o {ObjDir}tcpio.c.o {ObjDir}telnet.c.o ∂
  232.         "{Libraries}"Interface.o ∂
  233.         "{CLibraries}"CRuntime.o ∂
  234.         "{CLibraries}"StdCLib.o ∂
  235.         "{CLibraries}"CSANELib.o ∂
  236.         "{CLibraries}"Math.o ∂
  237.         "{CLibraries}"CInterface.o ∂
  238.         {TCPLibDir}tcplib.ncsa.o ∂
  239.         -o tn3270
  240.     Rez tcpversion.r -a -o tn3270
  241.     addswt tn3270
  242.     Setfile -a B tn3270
  243.     addshr tn3270
  244.  
  245. # tn3270 with Apple drivers
  246. tn3270drv ƒƒ {AllDepend} {CommonObj} {ObjDir}glbtcp.c.o ∂
  247.              {ObjDir}netstub.c.o ∂
  248.              {ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
  249.              {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  250.              {CommonRsc} tcpdversion.r addshr addswt
  251.     Delete -i tn3270drv
  252.     Link -b -w -t APPL -c 'GFTM' {CommonObj} {ObjDir}glbtcp.c.o ∂
  253.         {ObjDir}netstub.c.o ∂
  254.         {ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
  255.         {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  256.         "{Libraries}"Interface.o ∂
  257.         "{CLibraries}"CRuntime.o ∂
  258.         "{CLibraries}"StdCLib.o ∂
  259.         "{CLibraries}"CSANELib.o ∂
  260.         "{CLibraries}"Math.o ∂
  261.         "{CLibraries}"CInterface.o ∂
  262.         {TCPLibDir}tcplibd.o ∂
  263.         -o tn3270drv
  264.     Rez tcpdversion.r -a -o tn3270drv
  265.     addswt tn3270drv
  266.     Setfile -a B tn3270drv
  267.     addshr tn3270drv
  268.  
  269. # tn3270 with Apple drivers; test version with large MF memory
  270. tn3270test ƒƒ {AllDepend} {CommonObj} {ObjDir}glbtcp.c.o ∂
  271.              {ObjDir}netstub.c.o ∂
  272.              {ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
  273.              {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  274.              {CommonRsc} tcpdversion.r addshr addswt
  275.     Delete -i tn3270test
  276.     Link -b -w -t APPL -c 'GFTM' {CommonObj} {ObjDir}glbtcp.c.o ∂
  277.         {ObjDir}netstub.c.o ∂
  278.         {ObjDir}sertstub.c.o {ObjDir}serscrn.c.o ∂
  279.         {ObjDir}tcpevent.c.o {ObjDir}tcpiodrv.c.o {ObjDir}telnet.c.o ∂
  280.         "{Libraries}"Interface.o ∂
  281.         "{CLibraries}"CRuntime.o ∂
  282.         "{CLibraries}"StdCLib.o ∂
  283.         "{CLibraries}"CSANELib.o ∂
  284.         "{CLibraries}"Math.o ∂
  285.         "{CLibraries}"CInterface.o ∂
  286.         {TCPLibDir}tcplibd.o ∂
  287.         -o tn3270test
  288.     Rez tcpdversion.r -a -o tn3270test
  289.     addswt tn3270test test
  290.     Setfile -a B tn3270test
  291.     addshr tn3270test
  292.